//
//  ChoicenessModel.m
//  项目
//
//  Created by 杨世博 on 15-1-4.
//  Copyright (c) 2015年 张诗雨. All rights reserved.
//

#import "ChoicenessModel.h"

@implementation ChoicenessModel
- (void)dealloc
{
    [_pic release];
    [_covering release];
    [_title release];
    [_musicUrl release];
    [_musicVisit release];
    [_userinfo release];
    [_addtime_f release];
    [_playinfo release];
    [super dealloc];
}
- (instancetype)initWithPic:(NSString *)pic covering:(NSString *)covering title:(NSString *)title musicUrl:(NSString *)musicUrl musicVisit:(NSString *)musicVist userinfo:(NSMutableDictionary *)userinfo addtime_f:(NSMutableDictionary *)addtime_f playinfo:(NSMutableDictionary *)playinfo
{
    self = [super init];
    if (self) {
        self.pic = pic;
        self.covering = covering;
        self.title = title;
        self.musicUrl = musicUrl;
        self.musicVisit = musicVist;
        self.userinfo = [NSMutableDictionary dictionary];
        self.addtime_f = [NSMutableDictionary dictionary];
        self.playinfo = [NSMutableDictionary dictionary];
    }
    return self;
}
+ (instancetype)choicenessModelWithPic:(NSString *)pic covering:(NSString *)covering title:(NSString *)title musicUrl:(NSString *)musicUrl musicVisit:(NSString *)musicVist userinfo:(NSMutableDictionary *)userinfo addtime_f:(NSMutableDictionary *)addtime_f playinfo:(NSMutableDictionary *)playinfo
{
    ChoicenessModel *model = [[ChoicenessModel alloc] initWithPic:pic covering:covering title:title musicUrl:musicUrl musicVisit:musicVist userinfo:userinfo addtime_f:addtime_f playinfo:playinfo];
    return [model autorelease];
}
- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    
}
- (id)valueForUndefinedKey:(NSString *)key
{
    return @"";
}

@end
